﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Login : System.Web.UI.Page
{
    protected string idNum = string.Empty;
    protected void Page_Load(object sender, EventArgs e)
    {
        HttpCookie userCookie = HttpContext.Current.Request.Cookies["loginCookie"];
        if (userCookie != null)
        {
            if (userCookie["IdNum"] != null)
            {
                Response.Redirect(String.Format("page/MyTest1.aspx?idNum={0}", userCookie["IdNum"]));
            }
        }
    }
}